import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/action/` + url, ...arg)

/**
 * 接收设备信息Api接口管理器
 *
 * @author mengxiaowei
 * @date  2024/09/29 15:25
 **/
export default {
	// 获取接收设备信息分页
	receiveActionPage(data) {
		return request('page', data, 'get')
	},
	// 提交接收设备信息表单 edit为true时为编辑，默认为新增
	receiveActionSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除接收设备信息
	receiveActionDelete(data) {
		return request('delete', data)
	},
	// 获取接收设备信息详情
	receiveActionDetail(data) {
		return request('detail', data, 'get')
	}
}
